﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Krilib
{
    public class NetworkException : ApplicationException
    {
        /// <summary>
        /// Ignorable this exception(if user need to forbidden ignorable network excp,use this prop.)
        /// </summary>
        public bool Ignorable { get; set; }

        public NetworkException(string message)
            : this(message, true) { }

        public NetworkException(string message, Exception innerException)
            : this(message, innerException, true) { }

        public NetworkException(string message, bool ignorable)
            : base(message)
        {
            Ignorable = ignorable;
        }

        public NetworkException(string message, Exception innerException, bool ignorable)
            : base(message, innerException)
        {
            Ignorable = ignorable;
        }
    }
}